# -- coding: utf-8 -- 
# Name: app

from flask import Flask
import memcache
app = Flask(__name__)
mc = memcache.Client(['127.0.0.1:12321'], debug=True)
mc.add('key',99)
key = mc.get('key')
print(key)
mc.incr('key', 20)
key1 = mc.get('key')
print(key1)
mc.decr('key', 10)
key2 = mc.get('key')
print(key2)


@app.route('/')
def hello_world():
    return 'hello world'


if __name__ == '__main__':
    app.run()









